#!/bin/bash
################################
#RabbitMQ Cluster群集安装配置
#rabbitmqctl手工配置集群，Disk node，镜像模式
#centos7

#host设置

#RabbitMQ Cluster 安装群集
yum install rabbitmq-server erlang -y
#systemctl enable rabbitmq-server.service
# echo "
# NODE_PORT=5672
# NODE_IP_ADDRESS=0.0.0.0">/etc/rabbitmq/rabbitmq-env.conf #指定端口
systemctl start rabbitmq-server.service
#启动web插件端口15672
rabbitmq-plugins enable rabbitmq_management  
netstat -antp|egrep '567'